Copyright (c) hachiminemo. All rights reserved.

This software and its source code (the "Software") are proprietary and
confidential. No license, express or implied, is granted to any person to use,
copy, modify, merge, publish, distribute, sublicense, or sell copies of the
Software, except under a separate written agreement with the copyright holder.

Unauthorized copying, distribution, or use of the Software, in whole or in part,
is prohibited.

THIRD-PARTY COMPONENTS. The Software incorporates third-party components that
are distributed under their own licenses; those licenses, not this one, govern
those components, and nothing in this file limits the rights they grant. Most
are permissive (BSD-2-Clause, BSD-3-Clause, MIT, Apache-2.0, ISC). The
following are not permissive and are identified expressly:

  * github.com/xtls/reality -- Mozilla Public License 2.0 (MPL-2.0).
  * github.com/juju/ratelimit -- GNU Lesser General Public License v3 with a
    static/dynamic linking exception (a dependency of github.com/xtls/reality).

Both are linked only into the desktop/server executables built from cmd/ (the
REALITY server inbound); they are not linked into the mobile (gomobile)
library, and CI enforces this. The complete per-distribution inventory and the
full license texts are in THIRD_PARTY_NOTICES.md, which is generated by
tools/licensegen (scripts/licenses.sh, which also produces SPDX and CycloneDX
SBOMs) and must accompany every distributed build.

FIRST-PARTY FILES WITH MPL-2.0 LINEAGE. Certain first-party source files were
developed with reference to, and in part derived from, MPL-2.0 licensed code
(XTLS/Xray-core, hashicorp/yamux) and were subsequently re-expressed; they are
listed in THIRD_PARTY_NOTICES.md and docs/PROVENANCE.md. Pending independent
legal review, to the extent any such file is Covered Software under MPL-2.0,
that file remains subject to MPL-2.0 and nothing in this license restricts the
rights MPL-2.0 grants for it.

An independent legal review of these statements has not yet been completed.
For the provenance of individual protocol implementations and the licensing of
the reference works consulted during development, see docs/PROVENANCE.md and
docs/LICENSING.md.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
